﻿using HW_CommunicationLib.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HW_CommunicationLib.Interface
{
    public interface ICommunication
    {
        /// <summary>
        /// 开始通讯
        /// </summary>
        /// <returns></returns>
        bool Start();
        /// <summary>
        /// 结束通讯
        /// </summary>
        /// <returns></returns>
        bool Stop();
        /// <summary>
        /// 发送数据
        /// </summary>
        /// <param name="dataPackage"></param>
        DataPackage Send(DataPackage dataPackage);
    }
}
